﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CarBlackBox
{
    public partial class CommunicationFrame
    {
        public static ushort RxFrameLen(CommunicationCommand command)
        {
            switch (command)
            {
                case CommunicationCommand.采集记录仪的实时时钟:
                    return 6;
                case CommunicationCommand.采集记录仪中的车辆特征系数:
                    return 3;
                case CommunicationCommand.采集车辆VIN号_车牌号码_车牌分类:
                    return 41;
                case CommunicationCommand.采集驾驶员代码及对应的机动性车驾驶证号码:
                    return 21;
                case CommunicationCommand.采集最近360H内的累计行驶里程数据:
                    return 8;
                case CommunicationCommand.采集最近2个日历天内的累计行驶里程:
                    return 8;
            }
            return 0;
        }
    }
}
